MediaReceivers

A service that allows observing media receivers in the environment.

Since

7.29

See also

Functions

Link copied to clipboard
abstract fun await(predicate: Predicate<MediaReceiver>): MediaReceiver
abstract fun await(predicate: Predicate<MediaReceiver>, timeout: Duration): MediaReceiver
Blocks the current thread until the first receiver matching the predicate is discovered.
Link copied to clipboard
abstract fun list(): List<MediaReceiver>
Returns the list of connected (not unavailable) media receivers.
Link copied to clipboard
abstract fun <E : T?> on(eventClass: Class<E>, observer: Observer<E>): Subscription
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
abstract fun profile(): Profile
Returns the profile of this service.
Link copied to clipboard
abstract fun refresh()
Asynchronously updates the list of available media receivers.
Link copied to clipboard
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription

Subscribes the given observer to receive events of type E from this Observable.